package com.xll.springcloud.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xialonglei469
 * @Date: 2019-2-20 15:29
 * @Version 1.0
 */
@RestController
public class HelloController {

    private final Logger LOG = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping(value = "hello" , method = RequestMethod.GET)
    public String index(@RequestParam String name) {
        System.out.println(name);
        return name;
    }

}
